package com.demo.expression;

/**
 * @Author WaveHi
 * @Date 23/7/2021 下午 4:17
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
public class ExpressionTypeConvert {

    public static void main(String[] args) {

        //自动类型提升
        char c1 = 'a';
        int i1 = 1;
        short s1 = 2;
        long l1 = 12L;

        //提升为int
        int i3 = s1 + c1;

        //提升为范围最大的数据类型
        int i2 = i1 + s1;
        long l2 = l1 + i1;



    }

}
